<?php

/**
 * Entité modèle : Table des images
 * Représente l'ensemble des images disponibles
 * 
 * <b>Structure :</b>
 * <ul>
 *  <li>id</li>
 *	<li>label</li>
 *  <li>titre</li>
 *	<li>path</li>
 *	<li>pathMiniature</li>
 * </ul>
 * 
 * @author Cyril Souti
 * @version 1.1
 * @package models
 *
 */
class Models_Content_Lien extends Models_TableGite
{
	protected $_name = 'content_lien';
	protected $_referenceMap = array(self::REFERENCE_IMAGE=> array('columns' => 'image_id','refTableClass' => Models_Content_Image::CLASS_NAME,'refColumns' => 'id' ));
	
	const CLASS_NAME = 'Models_Content_Lien';
	const REFERENCE_IMAGE = 'Image';
	
	public function getAll() {
		$all = $this->fetchAll($this->select());
		return $all;
	}
}